﻿using System;
using System.Globalization;
using Xamarin.Forms;

namespace Moven.Converters
{
    class BookmarkImageConverter : IValueConverter
    {
		static readonly ImageSource CheckedImage = "checked.png", UncheckedImage = "unchecked.png";

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var isSelected = (bool)value;
			return isSelected? CheckedImage : UncheckedImage;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
